Quiz on Rating API
Test your understanding of the design decisions in an API.
Now that we understand the comment API design, let’s use what we’ve learned to answer questions on how we would build a rating API.
Which option represents the base URL for the rating API that follows the best practices?
Base URL: https://api.example.com/v1/create/ratings
This URL doesn’t follow the best practices because it contains the verb create.
Base URL: https://api.example.com/1.v1/rate
This URL contains redundant information that does not appear to be correct because it mentions 1 and the version v1 in the wrong way.
Base URL: https://api.example.com/v1/ratings
This URL follows the best practices because it doesn’t contain any verbs, and the version v1 is mentioned correctly.
Base URL: https://api.example.com/create/rating
This URL doesn’t follow the best practices because it contains the verb create.
Comment API Design Evaluation and Latency Budget
Introduction to the Pub-Sub Service